package com.naxiang.cn.xinvideo;

import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.SurfaceView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

/**
 * 作者: 赵航
 * 创建时间: 2018/7/14 10:20
 * 描述:
 */
public class VideoLivePlay extends RelativeLayout {
    private ImageView mChengeVideo;
    private ImageView mOpenLight;
    private ImageView mBiginVideo;
    private SurfaceView mSurfaceView;

    public VideoLivePlay(Context context) {
        super(context,null);
        initUi();
    }


    public VideoLivePlay(Context context, AttributeSet attrs) {
        super(context, attrs);
        initUi();
    }


    private void initUi() {
        LayoutInflater inflater = (LayoutInflater) this.getContext().getSystemService(Activity.LAYOUT_INFLATER_SERVICE);
        RelativeLayout layout = (RelativeLayout) inflater.inflate(R.layout.mo_xinvideo_living_layout, this);
        mChengeVideo=(ImageView) layout.findViewById(R.id.chengevideo);
        mOpenLight=(ImageView) layout.findViewById(R.id.openlight);
        mBiginVideo=(ImageView) layout.findViewById(R.id.biginvideo);
        mSurfaceView=(SurfaceView) layout.findViewById(R.id.livesurface);

    }


    public ImageView getChengeVideo() {
        return mChengeVideo;
    }
    public ImageView getOpenLight() {
        return mOpenLight;
    }
    public ImageView getBiginVideo() {
        return mBiginVideo;
    }
    public SurfaceView getSurfaceView() {
        return mSurfaceView;
    }
}
